import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'getType',
})
export class TypePipe implements PipeTransform {
  transform(value: number) {
    if (value === 1) {
      return '服务编排';
    }
    if (value === 2) {
      return '反向代理';
    }
    if (value === 1) {
      return '服务发现';
    }
  }
}
